wordlist=["fish","bird","cat","city","polar","fart","toilet","jesse","apple","hello","goodbye","bannana",]
import random
word= random.choice(wordlist)
print word
wordarray=list(word)
print wordarray
length=len(word)

print " Lets Play Hangman :)"
print (" Your Word is =")
dasharray=list( len(word)*"-")
wronguess=0
while wronguess<9 or dasharray==wordarray:
    guess=raw_input("Enter a Lower Case Letter")
    i=0
    while i<length:
        in_word=0
        if wordarray[i]==guess:
            dasharray[i]=guess
            i=i+1
            in_word=1
        else:
            i=i+1
    print dasharray 
    if in_word==0:
    wronguess=wronguess+1
        print wronguess
